/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 购票管理删除接口 DELETE /scenic/ticketingCustomForm/deleteTicketingCustom */
export async function scenicTicketingCustomFormDeleteTicketingCustomUsingDelete({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicTicketingCustomFormDeleteTicketingCustomUsingDeleteParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/ticketingCustomForm/deleteTicketingCustom',
    {
      method: 'DELETE',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 购票管理详情查询接口 GET /scenic/ticketingCustomForm/getByIdTicketingCustom */
export async function scenicTicketingCustomFormGetByIdTicketingCustomUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicTicketingCustomFormGetByIdTicketingCustomUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingzidingyipiaowubiaodanvo>(
    '/scenic/ticketingCustomForm/getByIdTicketingCustom',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 购票管理分页查询接口 POST /scenic/ticketingCustomForm/pageTicketingCustom */
export async function scenicTicketingCustomFormPageTicketingCustomUsingPost({
  body,
  options,
}: {
  body: API.TicketingCustomFormBoe138e420Ec2e427583b964043cefd8ef;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVozidingyipiaowubiaodanvo>(
    '/scenic/ticketingCustomForm/pageTicketingCustom',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 购票管理保存接口 POST /scenic/ticketingCustomForm/saveTicketingCustom */
export async function scenicTicketingCustomFormSaveTicketingCustomUsingPost({
  body,
  options,
}: {
  body: API.piaowuzidingyibiaodanxinxi;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/ticketingCustomForm/saveTicketingCustom',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** updateTicketingCustom PUT /scenic/ticketingCustomForm/updateTicketingCustom */
export async function scenicTicketingCustomFormUpdateTicketingCustomUsingPut({
  body,
  options,
}: {
  body: API.TicketingCustomFormBof90fb7357fb34bc69d58A8d361401c69;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/ticketingCustomForm/updateTicketingCustom',
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
